﻿using System;

namespace Shared.Service.DataScopeParsers
{
    /// <summary>
    /// 学校维度的数据范围解析
    /// </summary>
    public interface ISchoolDataScopeParser : IDataScopeParser
    {
        /// <summary>
        /// True ：启用并且没有配置全部并且配置本学校或本商户或者其他
        /// 使用 GetSchoolDataPermissionAsync 解决
        /// </summary>
        /// <param name="schoolIds"></param>
        /// <param name="treeNodeWay"></param>
        /// <returns></returns>
        [Obsolete]
        bool GetAllSchoolIds(out string[] schoolIds);

        /// <summary>
        /// 获取真正的门店标识 DptType 为S 的 TODO 
        /// </summary>
        /// <param name="schoolIds"></param>
        /// <param name="currentSchoolId"></param>
        /// <param name="treeNodeWay"></param>
        /// <returns></returns>
        bool GetAllRealSchoolIds(out string[] schoolIds, string currentSchoolId);

        // bool GetAllSchoolIds(out string[] schoolIds, string[] inputSchoolIds);
    }
}
